cmake_minimum_required(VERSION 3.20)
project(cmake_cache)
# set(test_cache "TEST_CACHE" CACHE STRING "CACHE DOC")
set(TEST_LOCAL "TEST_local")
message("local var: ${TEST_LOCAL}")
add_subdirectory(sub1)
add_subdirectory(sub2)

set(VAR_BOOL1 "ON" CACHE BOOL "VAR CACHE1")
set(VAR_BOOL2 "OFF" CACHE BOOL "VAR CACHE2")
message("---------------------------------")
message("VAR_BOOL1=${VAR_BOOL1}")
message("VAR_BOOL2=${VAR_BOOL2}")

option(OPT1 "opt1 doc" OFF)
option(OPT2 "opt2 doc" ON)
set(NVAR1 "nomal var1")
set(NVAR1 "nomal var1" CACHE STRING "cache doc")

message("NVAR1=${NVAR1}")
message("NVAR1=$CACHE{NVAR1}")